{include file="public/header" /}

<style type="text/css">
ul.tab-pane li{    list-style: none!important;}
.material_form .edit_area{border: 0;}
.tab-pane,.edit_area{padding: 0;margin:0 !important;}
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>新增模板消息</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">           
       
                    <div class="tab-content"> 
                      <!-- 表单 -->
                      <div id="form" action="{$post_url}" class="form-horizontal form-center editing">
                        <div class="material_form">

                            <div class="edit_area">
                                <div class="">
                                    <ul class="tab-pane in appmsg_edit_group">
                                        <li class="form-item cf">
                                            <label class="item-label"><span class="need_flag">*</span>模板消息ID<span class="check-tips"></span></label>
                                            <div class="controls">
                                              <input type="text" class="text form-control" name="tpl_id" value="{$data.tpl_id|default=''}">
                                            </div>
                                          </li> 
										  
										  <li class="form-item cf">
                                            <label class="item-label"><span class="need_flag">*</span>模板名称<span class="check-tips"></span></label>
                                            <div class="controls">
                                              <input type="text" class="text form-control" name="name" value="{$data.name|default=''}">
                                            </div>
                                          </li>
										  <li class="form-item cf">
											 <label class="item-label">模板固定参数<span class="check-tips"> 系统固定不需要，则不用选择</span></label>
											<div class="input-group col-sm-5">
											  <div id="dynamic_select_group_id"></div>
											  <select name="tpl_code"  class="form-control">
												{volist name="tpl_data" id="vo"}
													<option toggle-data="" class="toggle-data" value="">模板类型</option>
													<option toggle-data="" class="toggle-data" {if $vo.code==@$data.tpl_code} selected{/if} value="{$vo.code}">{$vo.name}</option>
												{/volist}

											  </select>
											</div>
											</li>
                                            <li class="form-item cf">
                                                <label class="item-label">描述<span class="check-tips"></span></label>
                                                <div class="controls">
                                                  <label class="">
                                                  <textarea class="text form-control" rows="4" cols="50" name="desc" >{$data.desc|default=''}</textarea>
                                                  </label>
                                                </div>
                                           </li>  
                                        
                                           
                                  </ul>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-1">
                                <button class="btn btn-primary ajax-post" type="submit" id="submit" target-form="form-horizontal"><i class="fa fa-save"></i> 保存</button>
                                &nbsp;&nbsp;
                                <a class="btn btn-danger" href="javascript:history.go(-1);"><i class="fa fa-close"></i> 返回</a>
                            </div>

                            </div>
                        </div>

                      </div>
                    </div>


                                 
                </div>
				</div>

                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}



</body>
</html>
